package com.itheima.myservlet;

import javax.servlet.*;
import java.io.IOException;

public class StudentServletDemo3 implements Servlet{
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("我是init方法,我被执行了!!!");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("我是servlet方法,我被执行了!!!");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("我是destroy方法,我被执行了!!!");
    }
}
